import request from "@/utils/request";

// 获取列表
export function getList(query) {
  return request({
    url: "/disasterScenarioManage/getDataList",
    method: "get",
    params: query,
  });
}

// 查询详细
export function getScenarios(id) {
  return request({
    url: '/disasterScenarioManage/getDataById?id=' + id,
    method: 'get'
  })
}

//增加
export function saveList(data) {
  return request({
    url: "/disasterScenarioManage/save",
    method: "post",
    data: data,
  });
}

//删除
export function delList(ids) {
  return request({
    url: "/disasterScenarioManage/delete",
    method: "post",
    data: ids,
  });
}

//修改
export function updateList(query) {
  return request({
    url: "/disasterScenarioManage/update",
    method: "post",
    data: query,
  });
}
// 获取当前登录人所在省份Id
export function getUserProvinceId(query) {
  return request({
    url: "/annualRiskManage/getUserProvinceId",
    method: "get",
  });
}

